<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="spring-sec" uri="http://www.springframework.org/security/tags" %>
<html>
<head>
    <title><spring:message code="${pojoDescriptor.name}.labelForm" text="${pojoDescriptor.name}"
                           htmlEscape="true"/></title>
    <tiles:insertAttribute name="scripts"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/reset-fonts.css" type="text/css"
          media="screen, projection"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/gt-styles.css" type="text/css"
          media="screen, projection"/>

    <link href='${pageContext.request.contextPath}/favicon.ico' rel='shortcut icon' type='image/x-icon'/>
</head>
<body>

<div class="gt-hd clearfix">
    <!-- logo -->
    <div class="gt-logo">
        <img src="${pageContext.request.contextPath}/css/images/chinchilla.png" alt="chinchilla"
             style="vertical-align:middle;"/> My Tiny Pet Clinic
        <p align="right" style="font-size :x-small;">
            <spring-sec:authorize ifAnyGranted="ROLE_USER">
                 <a href="${pageContext.request.contextPath}/j_spring_security_logout">Logout</a>
            </spring-sec:authorize>   

        </p>
    </div>
    <!-- / logo -->

    <!-- navigation -->
    <%@ include file="menu.jsp" %>
    <!-- / navigation -->

</div>
<!-- / head -->

<!-- body -->
<div class="gt-bd clearfix">

    <!-- main content -->
    <div class="gt-content">
        <tiles:insertAttribute name="body"/>
    </div>
    <!-- / body -->

    <!-- footer -->
    <%@ include file="footer.jsp" %>
</div>
</body>
</html>